extends Node2D

@onready var mask: ColorRect = $mask

func _ready() -> void:
	await mask._fade_out().finished
	mask.visible=false
	
func _physics_process(delta: float) -> void:
	if Input.is_action_just_pressed("select"):
		mask.visible=true
		await mask._fade_in().finished
		get_tree().quit()
